<?php
	class connection extends mysqli {

		public function __construct() {
			$debug = true;

			$hostDebug = "localhost";
			$userDebug = "root";
			$passDebug = "";
			$dbDebug = "garmor";

			$host = "garmor.db.11366777.hostedresource.com";
			$user = "garmor";
			$pass = "Garmorpass1!";
			$db = "garmor";
			
			if($debug){
				parent::__construct($hostDebug, $userDebug, $passDebug, $dbDebug);
			}
			else{
				parent::__construct($host, $user, $pass, $db);
			}
			if (mysqli_connect_error()) {
				die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error());
			}
		}	
	}
?>